package com.zhang.controller;


import com.zhang.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;




@RestController
@RequestMapping("/user")
public class UserController {


    @GetMapping("/regiest")
    public String regiest(){

        return "a";
    }

    @PostMapping("/login")
    public User login( String username, String password){

        User user = new User(username,password);

        return user;
    }

    @GetMapping("/getUser")
    public String getUser(String m ,int n){

        return "user";
    }


}









